package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthSchoolGroupService;
import com.orange.modules.dao.AuthSchoolExpertRepository;
import com.orange.modules.entity.expert.AuthExpertSchoolMap;
import com.orange.modules.entity.school.AuthSchool;

@Service
public class AuthSchoolGroupServiceImpl implements AuthSchoolGroupService{

	@Autowired
	private AuthSchoolExpertRepository authSchoolGroupRepository;
	
	@Override
	public void addAuthSchoolGroupMap(AuthExpertSchoolMap a) {
		// TODO Auto-generated method stub
		authSchoolGroupRepository.addAuthSchoolGroupMap(a);
	}

	@Override
	public List<AuthSchool> inspectAuthSchool() throws SQLException {
		// TODO Auto-generated method stub
		List<AuthSchool> list = authSchoolGroupRepository.inspectAuthSchool();
		return list;
	}

	@Override
	public void updateAuthSchoolFpexpert(String state) throws SQLException {
		// TODO Auto-generated method stub
		authSchoolGroupRepository.updateAuthSchoolFpexpert(state);
	}

}
